.home {
  min-height: 100vh;
  background: #fff;
  padding: 20px 0 0 0;
}

.searchBar {
  width: 90%;
  margin: 0 auto 18px auto;
  background: #f5f6fa;
  border-radius: 12px;
  padding: 10px 16px;
  box-sizing: border-box;
}
.searchInput {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: #333;
}

.headerRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: 0 auto 12px auto;
}
.headerTitle {
  font-weight: bold;
  font-size: 18px;
  color: #222;
}
.headerMore {
  font-size: 15px;
  color: #222;
  font-weight: 500;
}

.carousel {
  width: 90%;
  margin: 0 auto 18px auto;
  height: 180px;
  background: #e5e5e5;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carouselImg {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.carouselTrack {
  display: flex;
  height: 100%;
  will-change: transform;
}
.slideImage {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  transition: opacity 0.3s;
}
.carouselDots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.dot, .dotActive {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  display: inline-block;
  transition: background 0.2s;
}
.dotActive {
  background: #222;
}

.hotSection {
  width: 92%;
  margin: 0 auto 32px auto;
}
.hotHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.hotTitle {
  font-weight: bold;
  font-size: 18px;
  color: #222;
}
.hotMore {
  font-size: 15px;
  color: #222;
  font-weight: 500;
}
.hotTabs {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
.hotTabs::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.hotTab, .hotTabActive {
  padding: 6px 22px;
  border-radius: 22px;
  border: 2px solid #222;
  background: #fff;
  font-size: 16px;
  color: #222;
  cursor: pointer;
  font-weight: bold;
  outline: none;
  transition: background 0.2s, color 0.2s;
  margin-right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  box-sizing: border-box;
}
.hotTabActive {
  background: #222;
  color: #fff;
  border: 2px solid #222;
}
.productGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 16px;
}
.productCard {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 12px 10px 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
}
.productCard:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.13);
  transform: translateY(-2px) scale(1.02);
}
.productImgBox {
  width: 100%;
  aspect-ratio: 1/1;
  background: #e0e0e0;
  border-radius: 14px;
  position: relative;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.productImg {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f5f5;
}
.productFav {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #111;
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}
.productTitle {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 6px;
  color: #222;
}
.productInfoRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.productStar {
  font-size: 14px;
  color: #222;
  background: #f5f6fa;
  border-radius: 6px;
  padding: 2px 6px;
}
.productSold {
  font-size: 13px;
  color: #888;
  background: #f5f6fa;
  border-radius: 6px;
  padding: 2px 6px;
}
.productPrice {
  font-size: 16px;
  color: #222;
  font-weight: bold;
}
.addToCartBtn {
  margin-top: 8px;
  background: #ff4d4f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 18px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s;
}
.addToCartBtn:hover {
  background: #e43d3d;
}
.productDesc {
  color: #888;
  font-size: 13px;
  margin-bottom: 4px;
}
.welcome-bar {
  width: 100%;
  background: #fffae6;
  padding: 12px 0;
  text-align: center;
  font-size: 1.1rem;
  color: #d48806;
  margin-bottom: 12px;
}
.loadingText {
  text-align: center;
  color: #888;
  margin: 16px;
}
.finishedText {
  text-align: center;
  color: #888;
  margin: 16px;
}
.bottomSpacer {
  height: 60px;
}
.favActive {
  color: #ff4d4f !important;
  transition: color 0.2s;
}
